<!DOCTYPE html>
<html>

<head>
    <style>
        .pink {
            margin: 0 auto;
            width: 200px;
            height: 200px;
            background-color: skyblue;
        }
        
        .pink:hover {
            transform: scale(0.8, 0.8);
            /* scale(x,y) x y对应缩放比例, 输入2意为2倍 0.5意为0.5倍 */
            background-color: pink;
            transition: all 3s;
        }
    </style>
</head>

<body>
    <div class="pink">

    </div>
</body>

</html>